(window.webpackJsonp = window.webpackJsonp || []).push([["setWifi"], {
	"0be5": function(t, e, i) {
		"use strict";
		var s = i("4ea4");
		Object.defineProperty(e, "__esModule", {
			value: !0
		}),
		e.
	default = void 0,
		i("4917"),
		i("c5f6");
		var n = i("75ce"),
		a = i("50f9"),
		o = i("8c5f"),
		r = s(i("9668")),
		c = i("9f23"),
		u = new basecompoent("setWifi");
		u.data = function() {
			return {
				baseviewStyle: {},
				show1: !1,
				transitionName: "router-slide",
				SSID: "",
				PSW: "",
				password: "",
				updateTime: "",
				select: "",
				carId: "",
				wifiAPSwitch: "",
				wifiConnect: 0,
				surebuttom: "确定",
				canSet: "",
				canRefresh: "",
				flag: !0,
				success: !0,
				iswifiConnectnumber: !1,
				isssidtext: !0,
				ispasswordtext: !0,
				options: {},
				wifiswitch: "",
				rightName: "刷新",
				titleName: "WIFI热点",
				rightClass: "rightClass",
				userConfig: "",
				wifiConfig: "",
				currentPath: "/main/setWifi",
				isS311: !1
			}
		},
		u.mounted = function() { (0, c.buryingPoint)({
				plate: "home",
				pageA: "Wifipage",
				pageB: "Wifipage",
				id: "carservice08"
			})
		},
		u.created = function() {},
		u.computed = {
			getStutas: function() {
				return "设置中..." !== this.surebuttom && "更新中..." !== this.surebuttom
			},
			comtrolCmdDelay: function() {
				return this.$store.state.keyboard.controlCmdDelay
			},
			shouldSendCmd: function() {
				return this.$store.state.shouldSendCmd.cmdStatus
			}
		},
		u.filters = {
			formatUpdateTime: function(t) {
				return t ? moment("string" == typeof t ? Number(t) : t).format("YYYY-MM-DD HH:mm:ss") : ""
			}
		},
		u.watch = {},
		u.methods = {
			onshow: function() {
				var t = this;
				window.setWifiButton = this,
				t.canSet = (0, a.getUserSessionValue)("canOperateSet"),
				t.canRefresh = (0, a.getUserSessionValue)("canOperateRefresh"),
				t.carId = t.$route.query.carId,
				(!t.canSet && !t.canRefresh || t.checkCarDevice()) && (t.flag = !0, t.initView()),
				t.canSet && (t.initConfig(), t.initupdateTime(), t.success = !1),
				t.canRefresh && (t.flag = !1, t.checkCarDevice() || (t.surebuttom = "更新中..."), t.initupdateTime(), t.success = !1)
			},
			notifySSID: function() { (0, c.buryingPoint)({
					plate: "home",
					pageA: "Wifipage",
					pageB: "Wifipage",
					id: "carservice10"
				});
				var t = {
					SSID: this.SSID,
					PSW: this.PSW
				};
				this.$router.push({
					path: "/main/setWifi/notifyWifi/",
					query: {
						type: "1",
						params: t
					}
				})
			},
			notifyPSW: function() { (0, c.buryingPoint)({
					plate: "home",
					pageA: "Wifipage",
					pageB: "Wifipage",
					id: "carservice11"
				});
				var t = {
					SSID: this.SSID,
					PSW: this.PSW
				};
				this.$router.push({
					path: "/main/setWifi/notifyWifi/",
					query: {
						type: "2",
						params: t
					}
				})
			},
			onviewback: function(t) {
				var e = this;
				t && (1 == t.type && (e.isssidtext = !1, e.SSID = t.ressid), 2 == t.type && (e.ispasswordtext = !1, e.PSW = t.repsw))
			},
			wifiSwitchj: function() { (0, c.buryingPoint)({
					plate: "home",
					pageA: "Wifipage",
					pageB: "Wifipage",
					id: "carservice09"
				});
				var t = this;
				t.wifiAPSwitch ? (t.wifiAPSwitch = !1, t.wifiswitch = 0) : (t.wifiAPSwitch = !0, t.wifiswitch = 1)
			},
			setWifi: function() { (0, c.buryingPoint)({
					plate: "home",
					pageA: "Wifipage",
					pageB: "Wifipage",
					id: "carservice12"
				});
				var t = this;
				t.testMsg() && (t.wifiConfig = {
					ssid: t.SSID,
					securityType: "1",
					passw: t.PSW
				},
				(0, a.setUserSessionValue)("wificonfig:" + t.carId, t.wifiConfig), t.options = {
					data: {
						carId: t.carId,
						cmd: t.checkCarDevice() ? "WifiSet": "WifiUpdateSet",
						noNeedCloud: !0,
						wifiSSID: t.SSID,
						wifiSecurity: "1",
						wifiPassword: t.PSW,
						wifiAPSwitch: t.wifiswitch
					},
					controlCarSuccess: function() { (0, a.setUserSessionValue)("canOperateSet", !1),
						window.setWifiButton.uiProgressReset("设置中...")
					},
					controlError: function() { (0, a.setUserSessionValue)("canOperateSet", !1),
						window.setWifiButton.uiProgressResult("设置失败")
					},
					controlComplete: function() { (0, a.setUserSessionValue)("canOperateSet", !1),
						window.setWifiButton.uiProgressResult("设置成功"),
						window.setWifiButton.initView()
					},
					controlInfoTimeout: function() { (0, a.setUserSessionValue)("canOperateSet", !1),
						window.setWifiButton.uiProgressResult("设置失败")
					},
					controlRunning: function() { (0, a.setUserSessionValue)("canOperateSet", !0)
					},
					controlInfoWifiRunning: function() { (0, a.setUserSessionValue)("canOperateSet", !1),
						window.setWifiButton.uiProgressResult(""),
						t.$toast({
							msg: "发送成功",
							duration: 1e3,
							position: "center"
						})
					}
				},
				setTimeout((function() {
					t.comtrolCmdDelay || t.shouldSendCmd && (t.$refs.controlCmd.OpenCmd(), t.$store.commit("changeCmdStatus", !1))
				})))
			},
			testMsg: function() {
				var t = this;
				if (0 === t.SSID.length) {
					return t.$toast({
						msg: "请输入网络名称",
						duration: 1e3,
						position: "center"
					}),
					!1;
				}
				if (t.SSID.match(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g)) {
					return t.$toast({
						msg: "暂不支持表情",
						duration: 2e3,
						position: "center"
					}),
					!1;
				}
				return ! 0;
			},
			uiProgressRunning: function() {},
			uiProgressResult: function(t) {
				var e = this;
				e.flag = !0,
				e.success = !0,
				e.checkCarDevice() ? e.surebuttom = "确定": (e.surebuttom = "确定", e.$toast({
					msg: t,
					duration: 1e3,
					position: "center"
				}))
			},
			uiProgressResult2: function(t) {
				var e = this;
				e.flag = !0,
				e.success = !0,
				e.surebuttom = "确定"
			},
			uiProgressReset: function(t) {
				var e = this;
				e.flag = !1,
				e.success = !1,
				e.surebuttom = t
			},
			initView: function() {
				var t = this,
				e = {
					carId: t.carId
				}; (0, n.getEnCodeTerminalWifiSetting)(e, (function(e) {
					0 === e.data.code ? (t.checkCarDevice() || (t.surebuttom = "确定"), t.isssidtext = !1, t.ispasswordtext = !1, t.SSID = e.data.data.wifiSsid, t.password = e.data.data.wifiPassword, navigator.packaging && navigator.packaging.decryptContent(t.password, (function(e) {
						t.PSW = e
					}), (function(t) {})), e.data.data.recordTime && (t.updateTime = e.data.data.recordTime.substring(0, 19)), null != e.data.data.wifiOnnectionNum && (t.wifiConnect = e.data.data.wifiOnnectionNum), 1 == e.data.data.wifiApsWitch ? (t.wifiAPSwitch = !0, t.wifiswitch = 1) : (t.wifiAPSwitch = !1, t.wifiswitch = 0), (0, a.setUserSessionValue)("wifiUpdate" + t.carId, {
						recordTime: e.data.data.recordTime,
						wifiOnnectionNum: e.data.data.wifiOnnectionNum
					})) : (t.wifiAPSwitch = !1, t.wifiswitch = 0, "没有符合条件的数据" != e.data.msg && 8 !== e.data.code && t.$toast({
						msg: e.data.msg,
						duration: 1e3,
						position: "center"
					}))
				}), (function(t) {}))
			},
			initConfig: function() {
				var t = this;
				t.userConfig = (0, a.getUserSessionValue)("wificonfig:" + t.carId),
				null != t.userConfig && null != t.userConfig && (t.checkCarDevice() ? t.flag = !0 : (t.surebuttom = "设置中...", t.flag = !1))
			},
			initupdateTime: function() {
				var t = this;
				t.wifiAPSwitch = !1;
				var e = (0, a.getUserSessionValue)("wifiUpdate" + t.carId);
				e && (e.recordTime && (t.updateTime = e.recordTime.substring(0, 19)), null != e.wifiOnnectionNum && (t.wifiConnect = e.wifiOnnectionNum))
			},
			onRight: function() {
				var t = this;
				if (t.checkCarDevice()) return t.initView(),
				void t.$toast({
					msg: "刷新成功",
					duration: 1e3,
					position: "center"
				});
				var e = {
					carId: t.carId,
					cmd: "WifiParam",
					noNeedCloud: !0
				};
				t.options = {
					data: e,
					controlCarSuccess: function() { (0, a.setUserSessionValue)("canOperateRefresh", !1),
						window.setWifiButton.uiProgressReset("更新中...")
					},
					controlRunning: function() { (0, a.setUserSessionValue)("canOperateRefresh", !0)
					},
					controlError: function() { (0, a.setUserSessionValue)("canOperateRefresh", !1),
						window.setWifiButton.uiProgressResult("更新失败")
					},
					controlComplete: function() { (0, a.setUserSessionValue)("canOperateRefresh", !1),
						window.setWifiButton.uiProgressResult("更新成功"),
						window.setWifiButton.initView()
					},
					controlInfoTimeout: function() { (0, a.setUserSessionValue)("canOperateRefresh", !1),
						window.setWifiButton.uiProgressResult("更新失败")
					}
				},
				setTimeout((function() {
					t.$refs.controlCmd.OpenCmd()
				}))
			},
			checkCarDevice: function() {
				var t = (0, a.getCarFuncConfig)();
				return 1 == (0, o.GetObjectResult)(t, "toolkit/newService.s311clearMeaageBox", 0)
			}
		},
		u.components = {
			keyboard: r.
		default
		};
		var d = u;
		e.
	default = d
	},
	"2a0d": function(t, e, i) {
		"use strict";
		i.r(e);
		var s = i("0be5"),
		n = i.n(s);
		for (var a in s)["default"].indexOf(a) < 0 &&
		function(t) {
			i.d(e, t, (function() {
				return s[t]
			}))
		} (a);
		e.
	default = n.a
	},
	"3deb": function(t, e, i) {},
	"4a50": function(t, e, i) {
		"use strict";
		var s = i("d401");
		i.o(s, "render") && i.d(e, "render", (function() {
			return s.render
		})),
		i.o(s, "staticRenderFns") && i.d(e, "staticRenderFns", (function() {
			return s.staticRenderFns
		}))
	},
	"61c1": function(t, e, i) {
		"use strict";
		i.r(e);
		var s = i("4a50"),
		n = i("2a0d");
		for (var a in n)["default"].indexOf(a) < 0 &&
		function(t) {
			i.d(e, t, (function() {
				return n[t]
			}))
		} (a);
		i("e5ee");
		var o = i("2877"),
		r = Object(o.a)(n.
	default, s.render, s.staticRenderFns, !1, null, "75e6992b", null);
		e.
	default = r.exports
	},
	d401: function(t, e, i) {
		"use strict";
		Object.defineProperty(e, "__esModule", {
			value: !0
		}),
		e.staticRenderFns = e.render = void 0;
		e.render = function() {
			var t = this,
			e = t._self._c;
			t._self._setupProxy;
			return e("div", {
				attrs: {
					id: "setWifi"
				}
			},
			[e("keyboard", {
				ref: "controlCmd",
				attrs: {
					currentPath: t.currentPath,
					options: t.options
				}
			}), e("baseView", {
				attrs: {
					baseviewStyle: t.baseviewStyle
				}
			},
			[e("headTop", {
				attrs: {
					slot: "head",
					headTitle: t.titleName,
					rightSlot: "true"
				},
				slot: "head"
			},
			[e("div", {
				staticClass: "rightClass",
				attrs: {
					slot: "rightPart"
				},
				on: {
					click: function(e) {
						t.success && t.onRight()
					}
				},
				slot: "rightPart"
			},
			[t._v("\n        " + t._s(t.rightName) + "\n      ")])]), e("div", {
				attrs: {
					slot: "content"
				},
				slot: "content"
			},
			[e("div", {
				staticClass: "content"
			},
			[e("div", {
				staticClass: "note"
			},
			[t._v("\n          上次更新时间"), e("span", [t._v(t._s(t._f("formatUpdateTime")(t.updateTime)))])]), e("ca-cell-group", [e("ca-cell", {
				attrs: {
					title: "爱车启动后开启WIFI热点"
				}
			},
			[e("div", {
				attrs: {
					slot: "rightAction"
				},
				on: {
					click: function(e) {
						t.getStutas && t.wifiSwitchj()
					}
				},
				slot: "rightAction"
			},
			[e("ca-switch", {
				attrs: {
					active: t.wifiAPSwitch
				}
			})], 1)])], 1), e("div", {
				staticClass: "note note2 themaText"
			},
			[t._v("如果开启，车辆在下次点火后自动启动车载WIFI热点")]), e("ca-cell-group", [e("ca-cell", {
				attrs: {
					desc: t.SSID,
					"is-link": "",
					title: "网络名称"
				},
				on: {
					click: function(e) {
						t.getStutas && t.notifySSID()
					}
				}
			},
			[e("div", {
				directives: [{
					name: "show",
					rawName: "v-show",
					value: t.isssidtext,
					expression: "isssidtext"
				}],
				staticClass: "editDiv",
				attrs: {
					slot: "rightAction",
					id: "ssid"
				},
				slot: "rightAction"
			},
			[t._v("请输入网络名称")])]), e("ca-cell", {
				staticStyle: {
					display: "none"
				},
				attrs: {
					"is-link": "",
					title: "安全类型"
				}
			},
			[e("div", {
				attrs: {
					slot: "rightAction",
					id: "SAFETYPE"
				},
				slot: "rightAction"
			},
			[e("span", [t._v("WPA2-psk")])])]), e("ca-cell", {
				attrs: {
					id: "editNickname",
					"is-link": "",
					title: "网络密码"
				},
				on: {
					click: function(e) {
						t.getStutas && t.notifyPSW()
					}
				}
			},
			[e("div", {
				attrs: {
					slot: "rightAction"
				},
				slot: "rightAction"
			},
			[e("span", {
				directives: [{
					name: "show",
					rawName: "v-show",
					value: t.ispasswordtext,
					expression: "ispasswordtext"
				}],
				staticClass: "editDiv",
				attrs: {
					id: "password"
				}
			},
			[t._v("请设置网络密码")]), e("input", {
				directives: [{
					name: "show",
					rawName: "v-show",
					value: !t.ispasswordtext,
					expression: "!ispasswordtext"
				},
				{
					name: "model",
					rawName: "v-model",
					value: t.PSW,
					expression: "PSW"
				}],
				staticClass: "pswCss",
				attrs: {
					disabled: "",
					readonly: "",
					type: "password"
				},
				domProps: {
					value: t.PSW
				},
				on: {
					input: function(e) {
						e.target.composing || (t.PSW = e.target.value)
					}
				}
			})])])], 1), e("div", {
				directives: [{
					name: "show",
					rawName: "v-show",
					value: t.iswifiConnectnumber,
					expression: "iswifiConnectnumber"
				}],
				staticClass: "items items-line"
			},
			[e("span", [t._v("已连接此WIFI的设备数量")]), e("span", {
				staticClass: "wifiConnect"
			},
			[t._v(t._s(t.wifiConnect) + "个")])]), e("ca-btn", {
				staticClass: "sure-buttom",
				attrs: {
					disabled: !t.getStutas,
					block: ""
				},
				on: {
					click: function(e) {
						t.flag && t.setWifi()
					}
				}
			},
			[t._v("\n          " + t._s(t.surebuttom) + "\n        ")]), e("div", {
				staticClass: "note-netFlow"
			},
			[e("p", [t._v("温馨提示：")]), e("p", [t._v("车机流量有限，请酌情使用")])])], 1)])], 1)], 1)
		};
		e.staticRenderFns = []
	},
	e5ee: function(t, e, i) {
		"use strict";
		i("3deb")
	}
}]);